package appapi.entity.AppAmg;

import appapi.common.BaseEntity;
import appapi.entity.app.RectificationEntity;
import appapi.entity.app.SelfcheckDetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@ApiModel(value = "设备整改维修")
@Data
public class RectificationImgDto  {
    /**
     * 维保ID
     */
    @ApiModelProperty(value = "维保ID")
    private Long rectId;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private Integer rectType;

    /**
     * 整改项目
     */
    @ApiModelProperty(value = "整改项目")
    private String rectItem;

    /**
     * 来源
     */
    @ApiModelProperty(value = "来源")
    private Integer rectSource;

    /**
     * 整改要求
     */
    @ApiModelProperty(value = "整改要求")
    private String rectRequire;

    /**
     * 整改状态 0待整改 1整改完成 2已确认
     */
    @ApiModelProperty(value = "整改状态 0待整改 1整改完成 2已确认")
    private Integer rectState;

    /**
     * 整改人员
     */
    @ApiModelProperty(value = "整改人员")
    private Integer operId;

    /**
     * 整改时间
     */
    @ApiModelProperty(value = "整改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rectDate;

    /**
     * 整改结果
     */
    @ApiModelProperty(value = "整改结果")
    private Integer rectResult;

    /**
     * 整改备注
     */
    @ApiModelProperty(value = "整改备注")
    private String rectNote;

    /**
     * 整改设备
     */
    @ApiModelProperty(value = "整改设备")
    private Long equipId;

//    /**
//     * 创建时间
//     */
//    @ApiModelProperty(value = "创建时间")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date createTime;
//
//    @ApiModelProperty(value = "")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    private Date updateTime;

    /**
     * 整改图片
     */
    @ApiModelProperty(value = "整改图片")
    private String rectImg;
    @ApiModelProperty(value = "数组图片")
    private List<String> Img;
    public RectificationEntity vo2Entity() {
        RectificationEntity entity = new RectificationEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
